/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core;

import java.net.*;
import java.io.*; 
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;

public class StartServer
{
    public static void main(String[] args) {
        Server ds = new Server();
        /*try {
            Random r = new Random();
            int port = 3000; //r.nextInt(65535)+1
            ServerSocket server = new ServerSocket(port);
            Socket client = null;
            System.out.println("Server created @ " + server.getLocalSocketAddress().toString() + " : " + server.getLocalPort());
            boolean isAlive = true;
            while(isAlive) {
                client = server.accept();
                if(client.isConnected()) {
                    System.out.println("Client '" + client.getInetAddress().getHostAddress().toString() + "' connected!");
                }
                BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));
                String line = in.readLine();
                PrintWriter out = new PrintWriter(client.getOutputStream(), true);
                out.println(new Date().toString() + " - " + line);
                client.close();
            }
        } catch(IOException e) {
            e.printStackTrace();
        }*/
    }
}